import React from "react";
import { RouteConfig } from "./type";

const Button = React.lazy(() => import("../pages/button"));
const Checkbox = React.lazy(() => import("../pages/checkbox"));
const Input = React.lazy(() => import("../pages/input"));
const Radio = React.lazy(() => import("../pages/radio"));
const Switch = React.lazy(() => import("../pages/switch"));
const Tabs = React.lazy(() => import("../pages/tabs"));

const routers: RouteConfig[] = [
  {
    path: "/button",
    name: "button",
    component: Button,
    meta: {},
  },
  {
    path: "/checkbox",
    name: "checkbox",
    component: Checkbox,
    meta: {},
  },
  {
    path: "/input",
    name: "input",
    component: Input,
    meta: {},
  },
  {
    path: "/radio",
    name: "radio",
    component: Switch,
    meta: {},
  },
  {
    path: "/switch",
    name: "switch",
    component: Radio,
    meta: {},
  },
  {
    path: "/tabs",
    name: "tabs",
    component: Tabs,
    meta: {},
  },
  {
    path: "/",
    name: "home",
    component: Tabs,
    meta: {},
  },
];
export default routers;
